package com.wxmblog.photo.controller;

//import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.wxmblog.base.common.web.domain.R;
import com.wxmblog.photo.common.rest.request.user.ContactInfoRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiOperationSort;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wxmblog.photo.service.ContactInfoService;


/**
 * 联系信息
 *
 * @author wanglei
 * @email 378526425@qq.com
 * @date 2023-06-28 17:22:40
 */
@RestController
@RequestMapping("photo/contactinfo")
@Api(tags = "前台-联系方式")
public class ContactInfoController {
    @Autowired
    private ContactInfoService contactInfoService;


    @ApiOperation("提交联系信息")
    @ApiOperationSort(value = 1)
    @PostMapping("/add")
    public R<Void> addInfo(@RequestBody ContactInfoRequest request) {
        contactInfoService.addInfo(request);
        return R.ok();
    }
}
